package day7;

import java.lang.reflect.Array;
import java.util.Arrays;

/**
 * @author oldliu
 * @since 1.0
 */
public class ArrTest {
    public static void main(String[] args) {
        Object o = Array.newInstance(double.class, 20);
        Array.set(o,1,54.6);
        Array.set(o,2,14.6);
        double []d= (double[]) o;
        d[0]=100;

        System.out.println(Arrays.toString(d));
        System.out.println(Array.get(o,2));

    }
}
